<%@page import="com.leesche.zcsp.node.web.model.PubDiscount"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = (String) request.getAttribute("URL");
	String weixinURL = (String) request.getAttribute("winxinURL");
	String alipayURL = (String) request.getAttribute("alipayURL");
	String money = (String)request.getAttribute("money");
	String coin = (String)request.getAttribute("coin");
%>

<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="js/qrcode.js"></script>
<style>
#qrcode { /*text-align: center;*/
	/*display: table-cell;*/
	/*width: 96px;*/
	/*height: 96px;*/
	/*vertical-align:middle;*/
	/*position: relative;*/
	
}
</style>
</head>
<body>
	<div align="center">
		<div id="qrcode" align="center"></div>
		<br id="urltxt">多局二维码</br>

		<div id="qrcodeweixin" align="center"></div>
		
		<br ><%out.print("微信"+money+"元"+coin+"币"); %></br>

		<div id="qrcodealipay" align="center"></div>
		<br ><%out.print("支付宝"+money+"元"+coin+"币"); %></br>


	</div>
	<script>
		function createCode(code, url)
		{
		var qrcode = new QRCode(document.getElementById(code), {
				text : 'your content',
				width : 256,
				height : 256,
				colorDark : '#000000',
				colorLight : '#ffffff',
				correctLevel : QRCode.CorrectLevel.H
			});
			qrcode.makeCode(url);
		}

		window.onload = function() {
			createCode("qrcode", "<%=url%>");
			createCode("qrcodeweixin", "<%=weixinURL%>");
			createCode("qrcodealipay", "<%=alipayURL%>");
		};
	</script>
</body>
</html>
